package com.demo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QuestionVO")
public class QuestionVO {
    @ApiModelProperty(value = "问题id")
    private Integer questionId;

    @ApiModelProperty(value = "提出问题的用户")
    private Integer userId;

    @ApiModelProperty(value = "问题标题")
    private String questionTitle;

    @ApiModelProperty(value = "问题详细描述")
    private String questionDetail;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "问题创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;

    /*==========高赞回答==========*/
    @ApiModelProperty(value = "高赞回答")
    private AnswerVO answerVO;
}
